<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../_frag/include.inc.jsp"%>
<c:import url="../_frag/pager/pagerForm.jsp"/>

<%--<form method="post" rel="pagerForm" action="<c:url value='/management/user'/>" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>关键词：</label>
				<input type="text" name="keywords" value="${param.keywords}"/>
			</li>
			<li>
				<label>状态：</label>
				<select name="status">
					<option value="">全部</option>
					<c:forEach var="item" items="${userStatusList}">
					<c:if test="${item ne 'DELETED'}">
					<option value="${item}" ${item eq param.status ? 'selected="selected"' : ''}>${item}</option>
					</c:if>
					</c:forEach>
				</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>						
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
			</ul>
		</div>
	</div>
</div>
</form>--%>

<div class="pageContent">

	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" target="navTab" rel="userNav" href="${pageContext.request.contextPath}/admin/platform/add" title="添加平台"><span>添加</span></a></li>
			<li><a class="edit" target="navTab" rel="userNav" href="${pageContext.request.contextPath}/admin/platform/edit/{slt_objId}" title="编辑平台"><span>编辑</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="${pageContext.request.contextPath}/admin/platform/delete/{slt_objId}" title="你确定要删除吗?"><span>删除</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
                <th width="50">id</th>
                <th width="100">名称</th>
                <th>公司地址</th>
                <th width="100">区域</th>
                <th width="100">星级</th>
                <th width="100">年化收益率</th>
                <th width="100">平均收益率</th>
                <th width="130">注册时间</th>
                <th width="130">上线时间</th>
                <th width="100">状态</th>
                <th width="100"></th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="item" items="${platforms.content}" varStatus="s">
			<tr target="slt_objId" rel="${item.id}">
				<td>${item.id}<%--${s.index + 1}--%></td>
				<td><a href="${item.site}">${item.name}</a></td>
				<td>${item.company}</td>
				<td>${item.area}</td>
				<td>${item.star}</td>
				<td>${item.annualEarnings}</td>
				<td>${item.averageEarnings}%</td>
				<td><fmt:formatDate value="${item.registerDate}" pattern="yyyy-MM-dd"/></td>
				<td><fmt:formatDate value="${item.onlineDate}" pattern="yyyy-MM-dd"/></td>
				<td>${item.status == 0 ? '下架' : '上架'}</td>
				<td><a class="btn" href="${pageContext.request.contextPath}/admin/product/list/${item.id}" target="navTab">产品列表</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>

	<c:import url="../_frag/pager/panelBar.jsp"/>
</div>